package com.cnsuning.jobtool.cdc;

import org.apache.commons.collections.CollectionUtils;
import org.junit.Before;
import org.junit.Test;

import java.util.Arrays;
import java.util.List;

public class A_B {
    List<String> src ;
    List<String> tar ;
    String[] A = "ADVISE_INDEX,ADVISE_INSTANCE,ADVISE_WORKLOAD,DISTRI_WORK_ORDER_ABN,EXPLAIN_ARGUMENT,EXPLAIN_INSTANCE,EXPLAIN_OBJECT,EXPLAIN_OPERATOR,EXPLAIN_PREDICATE,EXPLAIN_STATEMENT,EXPLAIN_STREAM,INF_IN_MESSAGE_LOG,INF_MESSAGE_ERR,INF_OUT_MESSAGE_LOG,INF_SAP_RTNCHG,INTF_CMF_EXCEPTION,INTF_DEAL_EXCEPTION,OMSD_LES_IN_LOG,OMSD_LES_OUT_LOG,OMS_LES_HTTP_REQUEST_LOG,OMS_LES_HTTP_RESPONSE_LOG,PMAMAP,PMARTF,PMARUL,PMATTR,PMBMAP,PMBPMDAAC,PMBPMDATA,PMBPMDCSN,PMBPMDTRS,PMBPMENDS,PMBPMEVNT,PMBPMFLOW,PMBPMFRMT,PMBPMMSPT,PMBPMOPER,PMBPMPROC,PMBPMPRVD,PMBPMRFLW,PMBPMRSRC,PMBPMS,PMBPMSYNC,PMBPMVARB,PMBRNC,PMCDMASSC,PMCDMDTSC,PMCDMENTT,PMCDMINHR,PMCDMLINK,PMCDMPROP,PMCDMRLSH,PMCHCK,PMCHGD,PMCHGS,PMCLSS,PMCMAP,PMCMRID,PMCNFG,PMCONT,PMDBMS,PMDFDT,PMDFLT,PMDIAG,PMDRLS,PMDTSC,PMDVTL,PMEAMAPLK,PMEAMAPPL,PMEAMARCH,PMEAMASVC,PMEAMBUSC,PMEAMCOMP,PMEAMCTCT,PMEAMDATA,PMEAMDOCU,PMEAMDTBS,PMEAMETLJ,PMEAMFLOW,PMEAMFORM,PMEAMFUNC,PMEAMHPLM,PMEAMILNK,PMEAMINST,PMEAMNNOD,PMEAMNWRK,PMEAMOPER,PMEAMORGN,PMEAMPERS,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,SO_DATA_SYN_INFO,SO_DECUCT_INFO,SO_DELI_PENDING,SO_DELI_PENGDING_BAK20140108,SO_DIYATIANTIAN_INFO,SO_EASY_PURCHASE_EXTEND_INFO,SO_FACTORY_NEWEST_EVENT,SO_FACTORY_ORDER_RET_CHG_APPLY,SO_FACTORY_ORDER_RET_EXTENDS_INFO,SO_FACTORY_TIMING_EVENT_CONTROL,SO_INS_STATUS_DETAIL,SO_KM_CANCEL_STATUS,SO_LOTTERY_EXTENDS_INFO,SO_MISCELLANEOUS_ABN,SO_MISCELLANEOUS_INFO,SO_MIS_ORDER_INFO,SO_NSFESS_EXTENDS_INFO,SO_NSFSALE_EXTENDS_INFO,SO_O2O_ADD_INFO,SO_O2O_EVENT_RULES,SO_O2O_INFO,SO_O2O_MSG_RECEIPT,SO_O2O_RETURN_APPLY_INFO,SO_O2O_RET_RELATION_ITEMS_INFO,SO_O2O_TIMING_EVENT_CONTROL,SO_OLD_TO_NEW,SO_OLD_TO_NEW_ACTIVITYRULE,SO_OLD_TO_NEW_QUESTION,SO_ONLY_RET_PAY,SO_ONLY_RET_PAY_DETAIL,SO_ORD,SO_ORDER_STATUS_SYN_SDIPA,SO_ORDI,SO_ORDI_4PS_DELI_DETAIL,SO_ORDI_APPLY_STATUS_INF,SO_ORDI_ASYNC_RISK_RESULT,SO_ORDI_B2B_EXTENDS_INFO,SO_ORDI_BAK131230,SO_ORDI_BAK131231,SO_ORDI_BAK140101,SO_ORDI_BAK140102,SO_ORDI_BAK20140102,SO_ORDI_BAK20140103,SO_ORDI_CAR_EXTENDS,SO_ORDI_CHG_HIS,SO_ORDI_COMMUNICATION_EXTENDS,SO_ORDI_CONT,SO_ORDI_CREDIT_EXTEND_INFO,SO_ORDI_CRUXVALUE_EDIT_LOG,SO_ORDI_C_STORE_RETURN_EXTEND,SO_ORDI_DEAL_TYPE,SO_ORDI_DELIVERY,SO_ORDI_DELIVERY_ABN,SO_ORDI_DELIVERY_BEFORE,SO_ORDI_DELI_DETAIL,SO_ORDI_DELI_DETAIL_EXPRESS_INFO,SO_ORDI_DELI_DETAIL_EXTENDS,SO_ORDI_DISPATCH_INFO,SO_ORDI_DONATION_INFO,SO_ORDI_ERR_OPT_LOG,SO_ORDI_EXPRESS_INFO,SO_ORDI_EXTD,SO_ORDI_EXTENDS_INFO,SO_ORDI_FRESH_INFO,SO_ORDI_GIFTGOOD,SO_ORDI_GIFT_INFO,SO_ORDI_HB_EXTENDS_INFO,SO_ORDI_HOUSE_DECOR,SO_ORDI_INSURE_EXTEND_INFO,SO_ORDI_INS_INFO,SO_ORDI_INTERNAL_COLLAR_EXTENDS_INFO,SO_ORDI_INV_PRINT,SO_ORDI_LABEL_INFO,SO_ORDI_LEASE_EXTENDS_INFO,SO_ORDI_MODIFY_HIS,SO_ORDI_MQRECEVICE_ABN,SO_ORDI_NOGOODS_ABN,SO_ORDI_OUT_RENT_INFO,SO_ORDI_PACKAGE_GOODS_INFO,SO_ORDI_PACKAGE_RELATIONSHIP,SO_ORDI_PAY,SO_ORDI_PAY_BAK140103,SO_ORDI_POP_EXTENDS_INFO,SO_ORDI_POSTER_EXTENDS_INFO,SO_ORDI_POSTOFFICE_EXTENDS,SO_ORDI_PROCESS_STATUS,SO_ORDI_PROM,SO_ORDI_PROTOCOL_INFO,SO_ORDI_REPLENISH_INFO,SO_ORDI_RESERVE_INFO,SO_ORDI_RETAILB_INFO,SO_ORDI_REWARD_POINTS,SO_ORDI_REWARD_PROMO,SO_ORDI_SERVICE_EXT,SO_ORDI_SETMEAL_INFO,SO_ORDI_SETMEAL_REL_INFO,SO_ORDI_SPEC,SO_ORDI_SPEC_GIFT_INFO,SO_ORDI_SRV,SO_ORDI_SRVCARD,SO_ORDI_SRVCARD_ITEM,SO_ORDI_SRV_DETAIL,SO_ORDI_SRV_SERVICE_FLAG_INFO,SO_ORDI_STALL_COOK_INFO,SO_ORDI_STATUS_LOG,SO_ORDI_STATUS_SYN_SAP_INFO,SO_ORDI_STEP_DETAIL,SO_ORDI_STORAGE_DELIVERY,SO_ORDI_STORE_PRESALES_NOGOODS_EVENT,SO_ORDI_SUPERMEMBER_COMMODITY,SO_ORDI_TICKET_INFO,SO_ORDI_TRANS_OBJ,SO_ORDI_TRIP_VISITERS_INFO,SO_ORDI_VEGETABLE,SO_ORDI_VISTUALCARD_EXTEND_INFO,SO_ORDI_VISUAL,SO_ORDI_VISUAL_ABN,SO_ORDI_VOUCHER,SO_ORDI_ZCAD_EXT,SO_ORD_INVOICE,SO_ORD_OMS_EXCEPTION,SO_ORD_PAY,SO_ORD_POS_REWARD,SO_ORD_PROM,SO_ORD_PROMOTION_DEAL,SO_ORD_RELATIONSHIP,SO_ORD_REWARD_PROMO,SO_ORD_SMART_RESTAURANT,SO_ORD_STATUS_INF,SO_ORD_STATUS_PAY_INF,SO_OVERSEAS_SYN_INFO,SO_PAY_INFO,SO_PRE_REFUND_PAY_INFO,SO_REFUND_FAILED_REHANDLE,SO_RET_CHG_APPLY,SO_RET_CHG_EVENT,SO_RET_IMS_INF,SO_RET_MISCELLANEOUS_DETAIL,SO_RET_ORDER,SO_RET_ORDER_APPLICATION,SO_RET_ORDI_EXTD,SO_RET_PAY,SO_RET_PAY_ADD,SO_SALES_ORDER_MAIN_INF,SO_SALES_ORDER_MAIN_INF_HISTORY,SO_SELF_ONLYPAY_CHECK_RULE,SO_SELF_SUPPORT_ASYN_RET_APPLY,SO_SMS_NOTIFY,SO_SOURCE_ATTRIBUTION_INFO,SO_SPCS_DELI_DETAIL_INFO,SO_SRV_TIMING_EVENT_CONTROL,SO_STORE_LOGISTIC_DETAIL,SO_ST_ORDI_ABN,SO_ST_ORDI_STATUS,SO_ST_ORDI_STATUS_BAK131229,SO_ST_ORDI_STATUS_BAK131230,SO_ST_ORDI_STATUS_BAK131231,SO_ST_ORDI_STATUS_BAK140101,SO_ST_ORDI_STATUS_BAK140102,SO_ST_ORDI_STATUS_TMP,SO_ST_ORD_ABN,SO_ST_ORD_STATUS,SO_SWL_ORDI_STATUS_LOG,SO_SWL_RET_ORDER_APPLICATION,SO_SWL_TIMING_EVENT_CONTROL,SO_TIMING_EVENT_CONTROL,SO_TMALL_DD_REFUND_INFO,SO_TPS_REFUND_INFO,SO_TRADE_SERIAL_INFO,SO_WANDA_INFO,SO_WECHAT_VERIFY_RECORD,STATUS_SYN_INFO,SV_ORD,SV_ORDI,SV_ORDI_CUST,SV_ORDI_CUST_LJ,SV_ORDI_DELI_LJ,SV_ORDI_LJ,SV_ORDI_PAYER,SV_ORD_MBR,SYS_LOV_CODE_TMP,TMP1,T_DATA_SYNC_BUDSCOMMON,T_DATA_SYNC_SPCSCOMMON"
            .split(",");
    String[] B = "DISTRI_WORK_ORDER_ABN,INF_MESSAGE_ERR,INF_SAP_RTNCHG,INTF_CMF_EXCEPTION,INTF_DEAL_EXCEPTION,SO_ADD_INFO,SO_ARREARS_RELATE_INFO,SO_ASYN_RET_APPLY,SO_AUDIT_DEAL,SO_AUDIT_ITEM_DEAL,SO_AUDIT_RESULT,SO_BUDS_ST_CHGLOG,SO_C_ORDI_RECGOODS_EXP_LOG,SO_C_ORDI_SERVICE_INFO,SO_C_ORDI_STATUS_LOG,SO_C_RET_ORDER_ITEM_ID,SO_CANCEL_CHG_INFO,SO_CHG_ORDER,SO_CHG_STATUS_INF,SO_CONSIGNEE_EXTENDS_INFO,SO_CONSIGNEE_INFO,SO_DATA_ADD_SYN_BUDS_INFO,SO_DATA_DIS_INFO,SO_DATA_HANDLING,SO_DATA_NOT_MENTIONED_STATUS_INFO,SO_DATA_SYN_DELI_INFO,SO_DATA_SYN_INFO,SO_DECUCT_INFO,SO_DELI_PENDING,SO_DIYATIANTIAN_INFO,SO_FACTORY_NEWEST_EVENT,SO_FACTORY_ORDER_RET_CHG_APPLY,SO_FACTORY_ORDER_RET_EXTENDS_INFO,SO_FACTORY_TIMING_EVENT_CONTROL,SO_INS_STATUS_DETAIL,SO_KM_CANCEL_STATUS,SO_LOTTERY_EXTENDS_INFO,SO_MIS_ORDER_INFO,SO_MISCELLANEOUS_ABN,SO_MISCELLANEOUS_INFO,SO_NSFESS_EXTENDS_INFO,SO_NSFSALE_EXTENDS_INFO,SO_O2O_ADD_INFO,SO_O2O_EVENT_RULES,SO_O2O_INFO,SO_O2O_MSG_RECEIPT,SO_O2O_RET_RELATION_ITEMS_INFO,SO_O2O_RETURN_APPLY_INFO,SO_O2O_TIMING_EVENT_CONTROL,SO_OLD_TO_NEW,SO_OLD_TO_NEW_ACTIVITYRULE,SO_OLD_TO_NEW_QUESTION,SO_ONLY_RET_PAY,SO_ONLY_RET_PAY_DETAIL,SO_ORD,SO_ORD_INVOICE,SO_ORD_OMS_EXCEPTION,SO_ORD_POS_REWARD,SO_ORD_PROMOTION_DEAL,SO_ORD_RELATIONSHIP,SO_ORD_REWARD_PROMO,SO_ORD_SMART_RESTAURANT,SO_ORD_STATUS_INF,SO_ORDER_STATUS_SYN_SDIPA,SO_ORDI,SO_ORDI_4PS_DELI_DETAIL,SO_ORDI_APPLY_STATUS_INF,SO_ORDI_ASYNC_RISK_RESULT,SO_ORDI_B2B_EXTENDS_INFO,SO_ORDI_C_STORE_RETURN_EXTEND,SO_ORDI_CAR_EXTENDS,SO_ORDI_CHG_HIS,SO_ORDI_COMMUNICATION_EXTENDS,SO_ORDI_CONT,SO_ORDI_CREDIT_EXTEND_INFO,SO_ORDI_CRUXVALUE_EDIT_LOG,SO_ORDI_DEAL_TYPE,SO_ORDI_DELI_DETAIL,SO_ORDI_DELI_DETAIL_EXPRESS_INFO,SO_ORDI_DELI_DETAIL_EXTENDS,SO_ORDI_DELIVERY,SO_ORDI_DELIVERY_ABN,SO_ORDI_DELIVERY_BEFORE,SO_ORDI_DISPATCH_INFO,SO_ORDI_DONATION_INFO,SO_ORDI_ERR_OPT_LOG,SO_ORDI_EXPRESS_INFO,SO_ORDI_EXTD,SO_ORDI_EXTENDS_INFO,SO_ORDI_FRESH_INFO,SO_ORDI_GIFT_INFO,SO_ORDI_GIFTGOOD,SO_ORDI_HB_EXTENDS_INFO,SO_ORDI_HOUSE_DECOR,SO_ORDI_INS_INFO,SO_ORDI_INSURE_EXTEND_INFO,SO_ORDI_INTERNAL_COLLAR_EXTENDS_INFO,SO_ORDI_LABEL_INFO,SO_ORDI_LEASE_EXTENDS_INFO,SO_ORDI_MODIFY_HIS,SO_ORDI_NOGOODS_ABN,SO_ORDI_OUT_RENT_INFO,SO_ORDI_PACKAGE_GOODS_INFO,SO_ORDI_PACKAGE_RELATIONSHIP,SO_ORDI_PAY,SO_ORDI_POP_EXTENDS_INFO,SO_ORDI_POSTER_EXTENDS_INFO,SO_ORDI_POSTOFFICE_EXTENDS,SO_ORDI_PROCESS_STATUS,SO_ORDI_PROM,SO_ORDI_PROTOCOL_INFO,SO_ORDI_REPLENISH_INFO,SO_ORDI_RESERVE_INFO,SO_ORDI_RETAILB_INFO,SO_ORDI_REWARD_POINTS,SO_ORDI_REWARD_PROMO,SO_ORDI_SERVICE_EXT,SO_ORDI_SETMEAL_INFO,SO_ORDI_SETMEAL_REL_INFO,SO_ORDI_SPEC,SO_ORDI_SPEC_GIFT_INFO,SO_ORDI_SRV,SO_ORDI_SRV_DETAIL,SO_ORDI_SRV_SERVICE_FLAG_INFO,SO_ORDI_SRVCARD,SO_ORDI_SRVCARD_ITEM,SO_ORDI_STALL_COOK_INFO,SO_ORDI_STATUS_SYN_SAP_INFO,SO_ORDI_STEP_DETAIL,SO_ORDI_STORAGE_DELIVERY,SO_ORDI_STORE_PRESALES_NOGOODS_EVENT,SO_ORDI_SUPERMEMBER_COMMODITY,SO_ORDI_TICKET_INFO,SO_ORDI_TRANS_OBJ,SO_ORDI_TRIP_VISITERS_INFO,SO_ORDI_VEGETABLE,SO_ORDI_VISTUALCARD_EXTEND_INFO,SO_ORDI_VISUAL,SO_ORDI_VISUAL_ABN,SO_ORDI_VOUCHER,SO_ORDI_ZCAD_EXT,SO_OVERSEAS_SYN_INFO,SO_PAY_INFO,SO_PRE_REFUND_PAY_INFO,SO_REFUND_FAILED_REHANDLE,SO_RET_CHG_APPLY,SO_RET_CHG_EVENT,SO_RET_IMS_INF,SO_RET_MISCELLANEOUS_DETAIL,SO_RET_ORDER,SO_RET_ORDER_APPLICATION,SO_RET_ORDI_EXTD,SO_RET_PAY,SO_RET_PAY_ADD,SO_SALES_ORDER_MAIN_INF,SO_SELF_SUPPORT_ASYN_RET_APPLY,SO_SMS_NOTIFY,SO_SOURCE_ATTRIBUTION_INFO,SO_SPCS_DELI_DETAIL_INFO,SO_SRV_TIMING_EVENT_CONTROL,SO_ST_ORDI_ABN,SO_ST_ORDI_STATUS,SO_STORE_LOGISTIC_DETAIL,SO_SWL_ORDI_STATUS_LOG,SO_SWL_RET_ORDER_APPLICATION,SO_SWL_TIMING_EVENT_CONTROL,SO_TIMING_EVENT_CONTROL,SO_TMALL_DD_REFUND_INFO,SO_TPS_REFUND_INFO,SO_WANDA_INFO,SO_WECHAT_VERIFY_RECORD,STATUS_SYN_INFO,SV_ORD,SV_ORD_MBR,SV_ORDI,SV_ORDI_CUST,SV_ORDI_CUST_LJ,SV_ORDI_DELI_LJ,SV_ORDI_LJ,SV_ORDI_PAYER,TS_AUTH,TS_BOOKMARK,TS_CONFAUD".split(",");

    @Before
    public void setup()
    {
//        src = Arrays.asList(A);
//        tar = Arrays.asList(B);

        src = Arrays.asList(B);
        tar = Arrays.asList(A);
    }


    @Test()
    public void remove()
    {

        List<String> result = (List<String>) CollectionUtils.removeAll(src,tar);
//        result.addAll(src);
//
//        for (String b: tar)
//        {
//            if (src.contains(b)){
//                result.remove(b);
//            }
//        }
//        System.out.println(result.size());

        for(String item : result)
        {
            System.out.println(item);
        }
    }
}
